<?php
// error code
define( "WF_PROXY_ERR_NONE", 0);

// init
define( "WF_PROXY_ERR_INIT_OTHERS", 410);
define( "WF_PROXY_ERR_INIT_OTHERS_MSG", "Proxy initialization failed");

define( "WF_PROXY_ERR_INIT_INVALID_INPUT", 411);
define( "WF_PROXY_ERR_INIT_INVALID_INPUT_MSG", "Invalid input");

define( "WF_PROXY_ERR_INIT_INVALID_SERVER", 412);
define( "WF_PROXY_ERR_INIT_INVALID_SERVER_MSG", "Invalid server");

define( "WF_PROXY_ERR_INIT_INVALID_USERID", 413);
define( "WF_PROXY_ERR_INIT_INVALID_USERID_MSG", "Invalid userid");

define( "WF_PROXY_ERR_INIT_DBERR", 414);
define( "WF_PROXY_ERR_INIT_DBERR_MSG", "Database error");

define( "WF_PROXY_ERR_INIT_INVALID_MODULE", 415);
define( "WF_PROXY_ERR_INIT_INVALID_MODULE_MSG", "The module doesn't support proxy request.");

define( "WF_PROXY_ERR_INIT_MODULE_ERROR", 416);
define( "WF_PROXY_ERR_INIT_MODULE_ERROR_MSG", "The module doesn't implement properly. (class doesn't exist)");

// exec
define( "WF_PROXY_ERR_EXEC_OTHERS", 420);
define( "WF_PROXY_ERR_EXEC_OTHERS_MSG", "Proxy execution failed");

define( "WF_PROXY_ERR_EXEC_CONNECT", 421);
define( "WF_PROXY_ERR_EXEC_CONNECT_MSG", "Connecting to server failed");

define( "WF_PROXY_ERR_EXEC_LOGIN", 422);
define( "WF_PROXY_ERR_EXEC_LOGIN_MSG", "Login failed");

define( "WF_PROXY_ERR_EXEC_TIMEOUT", 423);
define( "WF_PROXY_ERR_EXEC_TIMEOUT_MSG", "Connecting to server timeout");

// result
define( "WF_PROXY_ERR_RESULT_OTHERS", 430);
define( "WF_PROXY_ERR_RESULT_OTHERS_MSG", "Proxy result generation failed");

define( "WF_PROXY_ERR_RESULT_INVALID", 431);
define( "WF_PROXY_ERR_RESULT_INVALID_MSG", "Invalid result");

// check
define( "WF_PROXY_CHK_DOWN", 441);
define( "WF_PROXY_CHK_DOWN_MSG", "Server is unreachable");

define( "WF_PROXY_CHK_ALIVE_MSG", "Server is alive");

?>
